<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">&times;</span></button>
    <h4 class="modal-title">观察报告</h4>
</div>
<div class="modal-body">
    <form id="form_data" class="row">
        <div id="div_error"></div>
        <input type="hidden" name="businessId" value="${businessId}">

        <div class="form-group col-sm-10 col-sm-offset-1">
            <label for="checkStatus">1、核查情况简述：</label>
            <textarea class="form-control " name="checkStatus" rows="3"></textarea>
        </div>
        <div class="form-group col-sm-10 col-sm-offset-1">
            <label for="abc">2、核查组纪律执行情况：</label>
            <div name="abc">
                <div class="col-sm-3 ">
                    <div class="radio">
                        <label>
                            <input type="radio" name="matter" checked value="0"/>良　　好
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio" name="matter" value="1"/>存在问题
                        </label>
                    </div>
                </div>
                <div class=" col-sm-9">
                    <textarea class="form-control " name="checkDiscipline" rows="3"></textarea>
                </div>
            </div>
        </div>

        <div class="form-group col-sm-10 col-sm-offset-1">
            <label for="remark">3、备注：</label>
            <textarea class="form-control " name="remark" rows="3"></textarea>
        </div>

        <div class="form-group col-sm-10 col-sm-offset-1">
            <div class="col-sm-offset-5">
                <button type="submit"
                        class="btn btn-default btn-success"><span
                        class="glyphicon glyphicon-ok"></span>&nbsp;确&nbsp;定&nbsp;
                </button>
            </div>
        </div>

    </form>

</div>

<script>
        $("#form_data").bootstrapValidator({
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                checkStatus: {
                    validators: {
                        notEmpty: {
                            message: '不能为空!'
                        }
                    }
                }, checkDiscipline: {
                    validators: {
                        notEmpty: {
                            message: '不能为空！'
                        }
                    }
                }
            }
        }).on('success.form.bv', function (e) {
            e.preventDefault();
            $.sysPlugin.superAjax({
                data: $(e.target).serialize(),
                url: '${url}',
                operateType: '${operateType}',
                showSuccessAlert: true,
                showWarnAlert: false,
                successCall: function (data) {
                    $.sysPlugin.successCallBack(data, {
                        modal: $("#modal_ajax"),
                        table: $("#table_data")
                    })
                },
                errorCall: function (data) {
                    $.sysPlugin.errorCallBack(data, {
                        form:  $("#form_data")
                    })
                }
            });


        });

</script>



